<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<%
	String path = request.getContextPath();
	String result = (String)request.getAttribute("result");
	if(result==null||result.isEmpty()){
		result = "";
	}
%>
<body>

	测试1：
	<form action="<%=path %>/test">
		<input type="text" name="number" id="number" value="<%=result %>">
		<input type="submit">
	</form>
	<div>
		<%=result %>
	</div>
	
	测试2：
	<form action="<%=path %>/test2">
		<input type="text" name="number" id="number" value="<%=result %>">
		<input type="submit">
	</form>
	
</body>
</html>